/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Task2;

import java.rmi.Naming;

/**
 *
 * @author Patrick Füssinger
 * ITB5_2
 * Enterprise Applications
 * Exercise 1
 * bis 13.11.2011
 */

public class RmiServer {
    public static void main(String [] args) {
        try {
            RmiSquare oRmiSquare = new RmiSquare();

            //Objekt-Instanz mit dem Namen RmiSquare einbinden
            Naming.rebind("rmi://localhost/RmiSquare", oRmiSquare);
            System.out.println("Objekt RmiSquare in Registry eingebunden");
            
        } catch(Exception e) {
            System.out.println("RmiSquare err: " +e.getMessage());
            e.printStackTrace();
        }
    }
}
